|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.analysis.BidPoint
public class BidPoint
A BidPoint is a tuple which contains the utility of a particular bid for each agent.
| Constructor Summary | |
|---|---|
BidPoint(Bid bid,
java.lang.Double... utility)
Create a BidPoint by given the bid and the tuple of utilities for that bid. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
Bid |
getBid()
Bid from which the utilities are represented. |
double |
getDistance(BidPoint other)
Returns the distance between this BidPoint and another BidPoint. |
java.lang.Double |
getUtility(int index)
Returns the utility of the bid for the i'th agent (agent A = 0, etc.). |
java.lang.Double |
getUtilityA()
Returns the utility of the bid for agent A. |
java.lang.Double |
getUtilityB()
Returns the utility of the bid for agent B. |
int |
hashCode()
|
boolean |
isStrictlyDominatedBy(BidPoint other)
Returns true if this BidPoint is strictly dominated by another BidPoint. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BidPoint(Bid bid,
java.lang.Double... utility)
bid - from which the utilities are stored.utility - tuple of utilities of the bid.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to which this object is compared.
public int hashCode()
hashCode in class java.lang.Objectpublic Bid getBid()
public java.lang.Double getUtility(int index)
index - of the agent of which the utility should be returned.
public java.lang.Double getUtilityA()
public java.lang.Double getUtilityB()
public boolean isStrictlyDominatedBy(BidPoint other)
other - BidPoint.
public double getDistance(BidPoint other)
other - bidpoint to which the distance is calculated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||